package com.bkhc.product.repository;

import com.bkhc.product.entity.PriceMode;
import com.bkhc.product.entity.PriceRule;
import org.springframework.data.jpa.repository.JpaRepository;
import org.springframework.data.jpa.repository.JpaSpecificationExecutor;
import org.springframework.data.jpa.repository.Query;
import org.springframework.stereotype.Repository;

import java.util.List;

@Repository
public interface PriceRuleRepository extends JpaRepository<PriceRule,Integer>, JpaSpecificationExecutor<PriceRule> {


    List<PriceRule> findByProductCodeAndBrandCode(String productCode, String brandCode);

    void deleteByProductCodeAndBrandCode(String productCode, String brandCode);
}
